﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;

namespace Mysoft.Rpa.ControlWeb.Controllers
{
    public class BaseController : Controller
    {

        public BaseController()
        {
        }


        public JsonResult JsonResult(Tuple<int, string> tuple)
        {
            return new JsonResult(new { Code = tuple.Item1, Msg = tuple.Item2 });
        }

        public JsonResult JsonResult(int code, string msg)
        {
            return new JsonResult(new { Code = code, Msg = msg});
        }
    }
}
